let devConfig = {
    productionSourceMap: false,
	devServer: {
		// 基本路径
		proxy: {
			'/api': {
				target: 'https://jbld.tiandao.fun:11002',
				ws: true,
				changeOrigin: true,
				pathRewrite: {
					'^/api': '' //需要rewrite的,
				}
			},
			'/target': {
				target: 'https://jbld.tiandao.fun:11001',
				ws: true,
				changeOrigin: true,
				pathRewrite: {
					'^/target': '' //需要rewrite的,
				}
			} 
		},
		disableHostCheck: true//取消主机检查，方便映射
    },
    configureWebpack: {
        externals: {
         'AMap': 'AMap' // 高德地图配置
        }
    },
    lintOnSave: true
};

module.exports = devConfig;
